package com.john.dao.base;

import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


//用于注入sqlSessionFactory
@Repository
public abstract class AbstractDaoImpl extends SqlSessionDaoSupport {
  
  @Autowired
  public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
      super.setSqlSessionFactory(sqlSessionFactory);
  }
}